package xy.donate.android.ui.fragment;

import android.view.View;
import android.widget.FrameLayout;

import xy.donate.android.R;
import xy.donate.android.common.MyFragment;
import xy.donate.android.ui.activity.CommitOrderActivity;
import xy.donate.android.ui.activity.HomeActivity;

/**
 * @author Administrator
 */
public class MainFragment extends MyFragment<HomeActivity> {

    public static MainFragment newInstance() {
        return new MainFragment();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragmen_home;
    }

    @Override
    protected void initView() {
        FrameLayout fl = findViewById(R.id.fl_yy);
        fl.setOnClickListener(view -> {
            startActivity(CommitOrderActivity.class);
        });
        findViewById(R.id.iv_msg).setOnClickListener(view -> {

        });
    }

    @Override
    protected void initData() {

    }
}
